package com.zhumengquan.wozhi.controller;

import com.zhumengquan.wozhi.domain.User;
import com.zhumengquan.wozhi.service.AddUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class AddUserController {
    @Autowired
    private AddUserService addUserService;
    @ResponseBody
    @RequestMapping("/adduser")
    public int AddUser(User user){
        int result = addUserService.addUser(user);
        return result;
    }

}
